import request from '@/utils/request'

// 查询职称信息列表
export function listPersonTitle(query) {
  return request({
    url: '/teacher/personTitle/list',
    method: 'get',
    params: query
  })
}

// 查询职称信息详细
export function getPersonTitle(recordid) {
  return request({
    url: '/teacher/personTitle/' + recordid,
    method: 'get'
  })
}

// 新增职称信息
export function addPersonTitle(data) {
  return request({
    url: '/teacher/personTitle',
    method: 'post',
    data: data
  })
}

// 修改职称信息
export function updatePersonTitle(data) {
  return request({
    url: '/teacher/personTitle',
    method: 'put',
    data: data
  })
}

// 删除职称信息
export function delPersonTitle(recordid) {
  return request({
    url: '/teacher/personTitle/' + recordid,
    method: 'delete'
  })
}

// 导出职称信息
export function exportPersonTitle(query) {
  return request({
    url: '/teacher/personTitle/export',
    method: 'get',
    params: query
  })
}